package views;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenuBar;
import javax.swing.JButton;

import java.awt.Dimension;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.JMenu;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.swing.JMenuItem;

import java.awt.GridLayout;

import javax.swing.JPanel;

import java.awt.Font;

import javax.swing.SwingConstants;
import javax.swing.JTextField;

import java.awt.Color;



import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenuBar;
import javax.swing.JScrollPane;

import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.JMenu;

import java.awt.image.BufferedImage;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Vector;

import javax.swing.JMenuItem;
import javax.swing.JTable;
import javax.swing.border.EmptyBorder;
import javax.swing.table.DefaultTableModel;
import javax.swing.JPanel;

import model.*;

import java.awt.Font;

import javax.swing.UIManager;
import javax.swing.SwingConstants;

import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.FlowLayout;

import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.BoxLayout;

import services.ClientesServices;

import java.awt.CardLayout;
import java.awt.SystemColor;
import java.awt.GridLayout;

import net.miginfocom.swing.MigLayout;

public class PanelNuevoViaje extends JPanel {

	private static final long serialVersionUID = 1L;
	private JTable table;

	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;

	public PanelNuevoViaje() {
		

		JPanel panel_1 = new JPanel();
		panel_1.setBackground(SystemColor.control);
		//setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

		// this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

		// GENERAL
		//setTitle("Asistente de Viajes - Ver Clientes");
		
		
				
		
		
		setSize(new Dimension(911, 605));
		//setOpacity(01);

		// FECHA
		// System.out.println(a.toString());

		// IMG
		BufferedImage myPicture;
		panel_1.setBounds(10, 11, 545, 569);
		add(panel_1);

		panel_1.setLayout(new BoxLayout(panel_1, BoxLayout.X_AXIS));
				
						// PARTICULAR
				
					//	JPanel panel = new JPanel();
					JPanel panel2 = new JPanel();
								//panel_2.setAlignmentX(CENTER_ALIGNMENT);
								
																				JLabel lblClientesActuales = new JLabel("Nuevo Paquete de Viaje");
																				lblClientesActuales.setAlignmentX(Component.CENTER_ALIGNMENT);
																				
																				panel2.add(lblClientesActuales, "cell 0 0,alignx center,aligny top");
																				
																				lblClientesActuales.setAlignmentY(Component.TOP_ALIGNMENT);
																				lblClientesActuales.setVerticalAlignment(SwingConstants.TOP);																				
																					lblClientesActuales.setFont(new Font("Tahoma", Font.PLAIN, 16));

																					
																					panel2.setLayout(new GridLayout(0, 2, 0, 20));
																					
																					JLabel label = new JLabel("");
																					panel2.add(label);
																					
																					JLabel lblSeleccionarVuelo = new JLabel("Seleccionar Vuelo");
																					lblSeleccionarVuelo.setHorizontalAlignment(SwingConstants.LEFT);
																					panel2.add(lblSeleccionarVuelo);
																					
																					/*textField = new JTextField();
																					panel2.add(textField);
																					textField.setColumns(10);*/
																					
																					JComboBox comboBox = new JComboBox();
																					panel2.add(comboBox);
																					
																					/*textField = new JTextField();
																					panel2.add(textField);
																					textField.setColumns(10);*/
																					
																					JLabel lblNombre = new JLabel("Nombre");
																					lblNombre.setHorizontalAlignment(SwingConstants.LEFT);
																					panel2.add(lblNombre);

																					textField = new JTextField();
																					panel2.add(textField);
																					textField.setColumns(10);

																					JLabel lblApellido = new JLabel("Apellido");
																					lblApellido.setHorizontalAlignment(SwingConstants.LEFT);
																					panel2.add(lblApellido);

																					textField_1 = new JTextField();
																					textField_1.setColumns(10);
																					panel2.add(textField_1);

																					JLabel lblPasaporte = new JLabel("Pasaporte");
																					lblPasaporte.setHorizontalAlignment(SwingConstants.LEFT);
																					panel2.add(lblPasaporte);

																					textField_2 = new JTextField();
																					textField_2.setColumns(10);
																					panel2.add(textField_2);

																					JLabel lblCliente = new JLabel("Cliente");
																					lblCliente.setHorizontalAlignment(SwingConstants.LEFT);
																					panel2.add(lblCliente);

																					textField_3 = new JTextField();
																					textField_3.setColumns(10);
																					panel2.add(textField_3);

																					JLabel lblVendedor = new JLabel("Vendedor");
																					lblVendedor.setHorizontalAlignment(SwingConstants.LEFT);
																					panel2.add(lblVendedor);

																					textField_4 = new JTextField();
																					textField_4.setColumns(10);
																					panel2.add(textField_4);

																					JLabel lblTelefono = new JLabel("Telefono");
																					lblTelefono.setHorizontalAlignment(SwingConstants.LEFT);
																					panel2.add(lblTelefono);

																					textField_5 = new JTextField();
																					textField_5.setColumns(10);
																					panel2.add(textField_5);

																					JLabel lblEma = new JLabel("Email");
																					lblEma.setHorizontalAlignment(SwingConstants.LEFT);
																					panel2.add(lblEma);

																					textField_6 = new JTextField();
																					textField_6.setColumns(10);
																					panel2.add(textField_6);

																					final JLabel lblPaqueteCreado = new JLabel("Paquete Creado");
																					JButton btnNewButton = new JButton("Cargar Paquete");
																					btnNewButton.addActionListener(new ActionListener() {
																						public void actionPerformed(ActionEvent arg0) {
																							lblPaqueteCreado.setVisible(true);
																						}
																					});
																					panel2.add(btnNewButton);

																					lblPaqueteCreado.setForeground(new Color(0, 128, 0));
																					lblPaqueteCreado.setHorizontalAlignment(SwingConstants.CENTER);
																					lblPaqueteCreado.setVisible(false);
																					panel2.add(lblPaqueteCreado);

																					
																					panel_1.add(panel2);																				
																					

																					JPanel panel = new JPanel();
																					add(panel);
																					panel.setBounds(32, 50, 447, 439);// tamm
																					
																					panel.setLayout(new GridLayout(0, 2, 0, 20));
																					panel.setAlignmentY(Component.BOTTOM_ALIGNMENT);
																					panel.setLayout(new MigLayout("", "[468.00px]", "[38.00px][]"));
																					
																					

	}

}





